//vue、vuex
import Vue from 'vue'
import Vuex from 'vuex'

//核心
import state from './state.js'
import mutations from './mutations.js'
import actions from './actions.js'
import getters from './getters.js'
import modules from './modules/index.js'

//使用
Vue.use(Vuex)

//暴露(会在 main.js 文件中引入并执行)
export default new Vuex.Store({
	state, 			// 总的state
	mutations, 		// 总的mutations
	actions, 		// 总的actions
	getters, 		// 总的getters
	modules
})